package com.website.quartz.job;

import com.website.quartz.service.QuartzTimerService;
import lombok.extern.slf4j.Slf4j;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

import javax.annotation.Resource;

@Slf4j
public class Test extends QuartzJobBean {

    @Resource
    QuartzTimerService service;

    @Override
    public void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info("{}", service);
        log.info("test");
        log.info("{}", jobExecutionContext.getMergedJobDataMap().getWrappedMap());
    }
}
